﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Collection;
using System.Threading;
namespace SandboxReader
{
    class Program
    {
        static void Main(string[] args)
        {
            using (RingBuffer buffer = new RingBuffer("spandan", 134217728))
            {
                int i = 0;
                buffer.InitializeMemory();
                while(buffer.ReadData())
                {
                    i++;
                    //Console.WriteLine(i);
                   // Console.WriteLine(Encoding.Default.GetString(buffer.Object));
                   // Thread.Sleep(1000);
                }
                Console.WriteLine(i);
            }
           
            Console.ReadLine();
            //string data="This is the tribute to thalaiva."
            
        }
    }
}
